<!DOCTYPE html>
<html>
<head>
    <title>jsonp</title>
    <script type="text/javascript">
         function show(json){
            let oUl = document.getElementById('ul1');
            oUl.innerHTML = '';
            json.s.forEach(function(str){
                let oLi = document.createElement('li');
                oLi.innerHTML = str;
                oUl.appendChild(oLi);
            })
         }      
    </script>
    <script type="text/javascript">
        window.onload = function(){
            let oTxt = document.getElementById('txt1');
            let oUl1 = document.getElementById('ul1');
            oTxt.oninput = function(){
                var oS = document.createElement('script');
                oS.src = `https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su?wd=${encodeURIComponent(oTxt.value)}&cb=show`;
                document.head.appendChild(oS);

            }
        }
    </script>
</head>
<body>
    <input type="text" name="" id="txt1">
    <ul id="ul1">
        
    </ul>
</body>
</html>